<?php
class Application_Form_Campaign extends Zend_Form
{
	public function init()
	{
		$this->setName('campaign');
		
		$id = new Zend_Form_Element_Hidden('id');
		$id->addFilter('Int');
		
		$title = new Zend_Form_Element_Text('title');
		$title->setLabel('Title')->setRequired(true);
		
		$body = new Zend_Form_Element_Textarea('body');
		$body->setLabel('Body')->setRequired(true);

		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setAttrib('id', 'submitbutton')->setLabel('Submit');

		$this->addElements(array($id, $title, $body, $submit));
	}
}